package com.triadsystems.cashweb.modelo.persistencia.entidades;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;

@Entity
@Table
@SequenceGenerator(name="seq_ftp", sequenceName="cw_seq_ftp", initialValue = 1, allocationSize = 1)
public class Ftp extends ValueObject{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column
	@GeneratedValue(generator = "seq_ftp", strategy = GenerationType.SEQUENCE)
	@Getter @Setter
	private Long entityId;
 
	@Getter @Setter
	@Column(name="FTP_CAMINHO")
	private String caminho;
	 
	@Getter @Setter
	@Column(name="FTP_SENHA")
	private String senha;
	 
	@Getter @Setter
	@Column(name="FTP_PORTA")
	private String porta;
	 
	@Getter @Setter
	@Column(name="FTP_USUARIOFTP")
	private String usuarioFTP;
	
	@ManyToOne
	@Getter @Setter
	private Filial filial;
}
 
